IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[DeleteProductoByIdLinea]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[DeleteProductoByIdLinea]
GO

CREATE PROCEDURE [dbo].[DeleteProductoByIdLinea]
(
	@IdLinea int
)
AS
BEGIN
	SET NOCOUNT ON

	DELETE FROM [Producto]
	WHERE [IdLinea] = @IdLinea

	SET NOCOUNT OFF
END

GO
